<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="sec"
	uri="http://www.springframework.org/security/tags"%>

<html>
<head>
<script type="text/javascript" src="<c:url value="/scripts/dom/comprobantes/frmRegistrarComprobante_dom.js" /> "></script>
</head>
<body>
			
		<h2 align="center">REGISTRAR COMPROBANTE PAGO</h2>
		<form action="" id="comprobanteForm" method="GET" >
		<table border="0" width="650" align="center">
			
			<tr>
				<td>
					<fieldset>
					<legend>Emision Comprobante</legend>
					<table width="100%">
						<tr>
							<td width="64"><label>EMPRESA</label></td>
							<td><form:select path="lista_empresas" style="WIDTH: 240px"
								 id="cmb_empresa" name="empresa" disabled="disabled">
								<form:options items="${lista_empresas}" itemValue="id_empresa"
									itemLabel="razon"></form:options>
								</form:select>
							</td>
							<td><label>DOCUMENTO</label></td>
							<td><form:select path="tipos_comprobantes" style="WIDTH: 235px" id="cmb_prioridad" name="comprobante">
									<form:option value=""  ></form:option>
									<form:options items="${tipos_comprobantes}"
										itemValue="id_tabla_tipo" itemLabel="descripcion_valor"></form:options>
								</form:select>
							</td>
						</tr>
						<tr>
							<td><label>FECHA</label></td>
							<td><input type="text" size="10"
								class="fecha_pedido required date" name="fecha_ingreso" id="fecha_pedido" />
							</td>
							<td><label>SERIE</label></td>
							<td><input type="text" class="caja required"  style="WIDTH: 53px" id="serie" name="serie" maxlength="4"/>
							<label>NUMERO</label>
							<input type="text" class="caja required" style="WIDTH: 100px" id="numero" name="numero"/>
							</td>
						</tr>
								
						<tr>
							<td><label>F.VENCI.</label></td>
							<td><input type="text" size="10"
								class="fecha_pedido date" name="fecha_vencimiento" id="fecha_vencimiento" />
							</td>
							<td></td>
							<td></td>
						</tr>
					</table>
					</fieldset>
				</td>
				
			</tr>
			
			<tr>
				<td>
					<fieldset>
					<legend>Orden</legend>
					<table width="100%">
						<tr>
							<td width="75%">
								<table>
									<tr>
										<td>ORDEN</td>
										<td><input type="text" class="codigos required" id="cod_ordenes" name="cod_ordenes"/></td>
										<td>FEC.EMISION</td>
										<td><input type="text" id="fecha" name="cod_ordenes" disabled="disabled"/></td>
									</tr>
									<tr>
										<td>ZONAL</td>
										<td><input type="text" id="zona" name="cod_ordenes" disabled="disabled"/></td>
										<td>FEC.ATENCION</td>
										<td><input type="text" id="fecha_atencion" name="cod_ordenes" disabled="disabled"/></td>
									</tr>
									<tr>
										<td>PROVEEDOR</td>
										<td colspan="3"><input type="text" id="proveedor" name="cod_ordenes" disabled="disabled" style="WIDTH: 383px"/></td>

									</tr>
									<tr>
										<td>RUC</td>
										<td><input type="text" id="ruc_proveedor" name="cod_ordenes" disabled="disabled"/></td>
										<td>TOT.CANCELADO</td>
										<td><input type="text" id="montoCancelado" name="cod_ordenes" disabled="disabled" class="caja_texto_gris"/></td>
									</tr>
								</table>
							
							</td>
							<td width="25%">
								<table>
									<tr>
										<td align="right">SUBTOTAL</td>
										<td><input type="text" id="monto_subtotal" name="cod_ordenes" disabled="disabled" style="WIDTH: 85px" class="caja_texto_gris"/></td>
									</tr>
									
									<tr>
										<td align="right">IMPUESTO</td>
										<td><input type="text" id="monto_impuesto" name="cod_ordenes" disabled="disabled" style="WIDTH: 85px" class="caja_texto_gris"/></td>
									</tr>
									
									<tr>
										<td align="right">OTROS</td>
										<td><input type="text" id="monto_otros" name="cod_ordenes" disabled="disabled" style="WIDTH: 85px" class="caja_texto_gris"/></td>
									</tr>
									
									<tr>
										<td align="right">TOTAL</td>
										<td><input type="text" id="monto_total" name="cod_ordenes" disabled="disabled" style="WIDTH: 85px" class="caja_texto_gris"/></td>
									</tr>
								</table>	
							
							</td>
						</tr>
					</table>
					</fieldset>
				</td>
				
			</tr>
			
			<tr>
				<td >
					<fieldset>
					<legend>Conceptos a pagar</legend>
					<table width="100%">
						<tr>
							<td class="content-tabla">
								<table align="center" class="ui-widget ui-widget-content" id="tb_detalle_orden" >
									<thead>
									<tr class="ui-widget-header">
										<th width='80'>PEDIDO</th>
										<th width='280'>SUMINISTRO</th>
										<th width='50'>COD.PRESUP.</th>
										<th width='80'>MONTO</th>
										<th width='80'>MONTO.PAGAR</th>
									</tr>
									</thead>
									<tbody>
									</tbody>
									<tr>
										<td></td>
										<td></td>
										<td></td>	
										<td><strong>PAGO TOTAL</strong></td>
										<td style='text-align:right'><input type="checkbox" id="chk_pagototal" /> </td>
									</tr>
									<tr>
										<td></td>
										<td></td>
										<td></td>	
										<td><strong>SUB-TOTAL</strong></td>
										<td style='text-align:right'><strong><span id="sub_total_comprobante">0.00</span></strong></td>
									</tr>
									<tr>
										<td></td>
										<td></td>
										<td></td>
										<td><STRONG>IMPUESTO</STRONG></td>
										<td style='text-align:right'><strong><span id="monto_impuesto_comprobante">0.00</span></strong></td>
									</tr>
									<tr>
										<td></td>
										<td></td>
										<td></td>
										<td><strong>AJUSTE IMP.</strong></td>
										<td style='text-align:right'><input type="button" value="+" onclick="agregaRedondeo();"/><input type="button" value="-" onclick="restaRedondeo();"/> </td>
									</tr>
									<!-- <tr>
										<td></td>
										<td></td>
										<td></td>
										<td></td>
										<td></td>	
										<td><strong>OTROS</strong></td>
										<td style='text-align:right'><strong><input type="text" style='text-align:right' id="monto_otros" value="0.00" size="5"/></strong></td>
									</tr> -->
									<tr>
										<td></td>
										<td></td>
										<td></td>
										<td><strong>TOTAL</strong></td>
										<td style='text-align:right'><strong><span id="total_comprobante">0.00</span></strong></td>
									</tr>
								</table>
							</td>
						</tr>
					</table>
					</fieldset>
				</td>
				
			</tr>
			
			
			<tr>
				<td  colspan="2" align="center">
						<a id="btn_enviar"></a>
						<a id="btn_limpiar"></a>
						 
				</td>
				
			</tr>
			
			<tr>
				<td  colspan="2" height="20"></td>
				
			</tr>
		</table>
		</form>
	
</body>
</html>